<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>

    <!-- Basic Page Needs
  ================================================== -->
	<meta charset="utf-8">
	<title>发布兼职信息页面</title>
	<meta name="description" content="Free Responsive Html5 Css3 Templates | zerotheme.com">
	<meta name="author" content="www.zerotheme.com">
	
    <!-- Mobile Specific Metas
  ================================================== -->
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <!-- CSS
  ================================================== -->
  	<link rel="stylesheet" href="css/zerogrid.css">
	<link rel="stylesheet" href="css/style.css">
	<link rel="stylesheet" href="css/component.css">
	<link rel="stylesheet" href="css/responsive.css">
	<link href='./images/favicon.ico' rel='icon' type='image/x-icon'/>
	<script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/jquery.min1.js"></script>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript">
	function register() {
		//异步提交表单， 提交表单成功自动跳转到发布首页。
		var formData = $("#RegisterForm").serialize();
		$.ajax({
			url : "../RegisterServlet",
			data : formData,
			type : "post",
			contentType: "application/x-www-form-urlencoded; charset=utf-8", 
			success : function(data) {//ajax返回的数据
				var message= eval('('+data+')');
				alert(message.message);
				window.location.href="index.jsp";
			},
		});
	}
	</script>
	<style type="text/css">
	.contact-form div{
	margin: 10px 0;
}
.contact-form label{
	color:#555555;
	font-size:0.8725em;
	text-transform:capitalize;
}
.contact-form input[type="text"],.contact-form textarea{
	font-family: 'Open Sans', sans-serif;
	font-size:0.8725em;
	color:#B8B6B6;
	padding: 8px;
	display: block;
	width: 98%;
	background: #FFFFFF;
	border:1px solid #E6E6E6;
	outline: none;
	-webkit-appearance: none;
	margin-top: 10px;
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-o-border-radius: 4px;
}
.contact-form textarea{
	resize:none;
	height:120px;		
}
.contact-form input[type="text"]:focus,.contact-form textarea:focus{
	color:#555;
	-webkit-transition: all 0.3s ease-out;
	-moz-transition: all 0.3s ease-out;
	-ms-transition: all 0.3s ease-out;
	-o-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
	border: 1px solid rgba(117, 95, 165, 0.05);
	-webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
	-moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
	box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
}
.contact-form input[type="submit"]{
	margin-top:2%;
	font-family: 'Open Sans', sans-serif;
	background: #EA6060;
	color: #ffffff;
	font-size: 1em;
	text-transform: uppercase;
	padding: 8px 20px;
	border: none;
	cursor: pointer;
	line-height: 1.5em;
	-webkit-transition: all 0.3s ease-out;
	-moz-transition: all 0.3s ease-out;
	-ms-transition: all 0.3s ease-out;
	-o-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-o-border-radius: 4px;
	-webkit-appearance:none;
}
.contact-form input[type="submit"]:hover{
	background: #56CCC8;
}
	</style>
    
</head>
<body>
<div class="wrap-body">
<!--------------Header--------------->
<header>
	<div class="top-header">
		<div class="wrap-top zerogrid">
			<div class="row">
				<div style="float:left;text-align:left;font-size:2.4em;Color:#C6A300;font-family:楷体;margin-top:1opx;">兼职乐</div>
			</div>
		</div>
	</div>
	<div class="wrap-header zerogrid">
		<div class="row">
			<div>
				<div class="col-2-3" style="float:center;">
				<nav>
					<a class="toggleMenu" href="#">Menu</a>
					<ul class="menu">
						<li><a href="index.jsp" style="color:#336666;">首页</a></li>
						<li>
							<a href="#" class="parent" style="color:#336666;">搜索兼职</a>
							<ul>
								<li>
									<a href="#" class="parent">Menu 0001</a>
									<ul>
										<li><a href="#">Menu 1001</a></li>
										<li><a href="#">Menu 1002</a></li>
										<li><a href="#">Menu 1003</a></li>
									</ul>
								</li>
								<li>
									<a href="#" class="parent">Menu 0002</a>
									<ul>
										<li><a href="#">Menu 1002</a></li>
										<li><a href="#">Menu 1002</a></li>
									</ul>
								</li>
							</ul>
						</li>
						<li><a href="single.jsp" style="color:#336666;">发布兼职</a></li>
						<li><a href="../admin/admin.jsp" style="color:#336666;">个人管理</a></li>
					</ul>
				</nav>
			</div>
			</div>
			
		</div>
	</div>
</header>

 
<!--------------Content--------------->
<section class="container page-single">
	<div class="wrap-container zerogrid">
		<div class="col-2-3">
			<div id="main-content" class="wrap-col">
					<div class="art-content">
				      	 <div class="sap_tabs">	
					  	 
				<div class="resp-tabs-container">
					
				      <div class="tab-4">
				      	
				      	 <div class="facts">
				      	 	
				      	 	<p style="font-size: 1.5em;font-weight: 100;">注册</p>
				      	 	<div>
				      	 		
				      	 	</div>
				      	 	<div class="contact-form">
					          <form id="RegisterForm" method="get">
						    	<div>
						    	<input name="username" type="text" placeholder="用户名"  class="textbox">
							    </div>
							    <div>
							    	<input name="userpassword" type="text" placeholder="密码" class="textbox">
							    </div>		
							    <div>
							    	<input name="userpassword2" type="text" placeholder="再次输入密码" class="textbox">
							    </div>	
							    <div>
							    	<input name="useremail" type="text" placeholder="邮箱" class="textbox">
							    </div>
							    <div>
							    	<input name="text" type="text" placeholder="居住地" class="textbox">
							    </div>
							   <div>
							   		<span><input type="button" onclick="register()" value="注册" width="60px"></span>
							  </div>
					   		 </form>
				    		</div>
				         </div> 			              				             
				      </div>	
		        </div>
      	</div>	
					</div>
				
				
			</div>
		</div>
		
	</div>
</section>
<!--------------Footer--------------->
<footer>
	<div class="wrap-footer zerogrid">
		<div class="row">
			<div class="col-full">
				<div class="wrap-col">
					<h1>zSarah</h1>
					<p>Free Html5 Templates - Zerotheme.com</p>
					<div class="menu-bottom">
						<ul>
							<li><a href="#">Home</a></li>
							<li><a href="#">Blog</a></li>
							<li><a href="#">About</a></li>
							<li><a href="#">Contact</a></li>
							
						</ul>
						<div class="clear"></div>
					</div>
					
				</div>
			</div>
		</div>
	</div>
</footer>

</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/navigation.js"></script>
</body></html>